<?php
/* @var $this CategorysController */
/* @var $model Categorys */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'categorys-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'category_parent'); ?>
		<?php echo $form->textField($model,'category_parent',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'category_parent'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_model'); ?>
		<?php echo $form->textField($model,'category_model',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'category_model'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_type'); ?>
		<?php echo $form->textField($model,'category_type',array('size'=>5,'maxlength'=>5)); ?>
		<?php echo $form->error($model,'category_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_name'); ?>
		<?php echo $form->textField($model,'category_name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'category_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_alias'); ?>
		<?php echo $form->textField($model,'category_alias',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'category_alias'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_content'); ?>
		<?php echo $form->textArea($model,'category_content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'category_content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'seo_title'); ?>
		<?php echo $form->textField($model,'seo_title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'seo_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'seo_keywords'); ?>
		<?php echo $form->textField($model,'seo_keywords',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'seo_keywords'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'seo_description'); ?>
		<?php echo $form->textArea($model,'seo_description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'seo_description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_status'); ?>
		<?php echo $form->textField($model,'category_status'); ?>
		<?php echo $form->error($model,'category_status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'category_ismenu'); ?>
		<?php echo $form->textField($model,'category_ismenu'); ?>
		<?php echo $form->error($model,'category_ismenu'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->